#ifndef user_uart_h
#define user_uart_h
#include "uart_obj.h"

#define UART_ONE_BYTE_IT_MODE 0
#define UART_DMA_MODE 1

#define CW32_UART1_MODE UART_DMA_MODE

void bsp_uart_obj_init(void);

void task_uart1_it_rx_byte_irq(void);
void task_uart1_rx_frame_break(void);
void task_uart1_rx_fifo_read(void);

void cw32_uart1_send_data(uint8_t *udata, uint16_t len);

#endif
